<?php

namespace App\Http\Controllers;

use PHPSpring\Web\ValidationRules;

/**
 * 首页
 * @Controller
 * @RequestMapping('/index')
 * @ResponseJson
 */
class IndexController
{

    public array $except = [
        //SensitiveEntity::class,
    ];//黑名单entities

    /**
     * 引入trait后自动暴露加载Entity校验规则的接口 <br>
     * EG: /index/rules 返回全部Entity <br>
     * EG: /index/rules?entities=App\Entity\User 单个Entity <br>
     * EG: /index/rules?entities[]=App\Entity\User&entities[]=App\Entity\Group 返回多个Entity
     */
    use ValidationRules;

}
